﻿
using System;
using System.Xml.Serialization;

namespace ch.froorider.NGoogleCalendar.facade.businessObjects
{
	/// <summary>
	/// BO. Encapsulates all the data for a user.
	/// </summary>
    [Serializable]
    [XmlRoot(IsNullable = false, Namespace = "http://www.froorider.ch")]
	public class User : BusinessObject
	{
		#region members

		private string userName;
		private string accountName;
		private string password;

		#endregion

		#region properties

		/// <summary>The username as used in the application.</summary>
		public string UserName { 
			get{
				return this.userName;
			} 
			set{
				this.userName = value;
				NotifyPropertyChanged("UserName");
			} 
		}

		/// <summary>The name of the google account used.</summary>
		public string AccountName {
			get{
				return this.accountName;
			}
			set
			{
				this.accountName = value;
				NotifyPropertyChanged("AccountName");
			}
		}

		/// <summary>The google account password.</summary>
		public string Password {
			get
			{
				return this.password;
			}
			set
			{
				this.password = value;
				NotifyPropertyChanged("Password");
			}
		}

		#endregion
	}
}
